﻿@model WorkTimePrj.Models.Project

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>新建项目</title>
     <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
	<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .field-validation-error{float:none;}
        .body ul.cur li{height:30px; line-height:30px;}
        .editor-label{width:90px;float:left;}
        .editor-field{float:left;}
        .Button01{font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #003677; 
height: 20px; 
border: solid 1px #5381B3; 
padding-left:4px;
padding-right:4px;
background:#ffffff  ;
}
        div.action{padding-left:215px;margin-top:10px;}
    </style>
    <script src="@Url.Content("~/Scripts/jquery-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
      <script type="text/javascript">
         $(function () {
                if (@ViewBag.refresh==1)
            {
                 window.opener.location.reload();
                //window.close();
            }
         });
        </script>
</head>
<body>
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        <div class="form">
            <div class="sitemap">
              
    	 	新建项目
            </div>
            <div class="body">
    			<ul  class="cur">
    				<li>
                            <div class="editor-label">
                            <label>项目代码</label>
                            </div>
                            <div class="editor-field">
    	                    @Html.EditorFor(model => model.code)
                            @Html.ValidationMessageFor(model => model.code)
                            </div>
    				</li>
                     <li>
                            <div class="editor-label">
                            <label>项目名称</label>
                            </div>
                            <div class="editor-field">
    	                    @Html.EditorFor(model => model.display)
                            @Html.ValidationMessageFor(model => model.display)
                            </div> 
    				</li>
                    <li>
                            <div class="editor-label">
                            <label>创建时间</label>
                            </div>
                            <div class="editor-field">
    	                    @Html.DisplayFor(model => model.createtime)
                            @Html.ValidationMessageFor(model => model.createtime)
                            </div> 
    				</li>
                    <li>
                            <div class="editor-label">
                            <label>状态</label>
                            </div>
                            <div class="editor-field">
    	                    @Html.DropDownListFor(model => model.status, new SelectList(new String[]{"售前","在建","售后","已关闭"}))
                            @Html.ValidationMessageFor(model => model.status)
                            </div>
    				</li>
                    <li>
                            <div class="editor-label">
                            <label>创建人</label>
                            </div>
    	                    <div class="editor-field">
                            @Html.EditorFor(model => model.creator)
                            @Html.ValidationMessageFor(model => model.creator)
                            </div>
    				</li>
                     <li>
                            <div class="editor-label">
                            @Html.LabelFor(model => model.PM)
                            </div>
    	                    <div class="editor-field">
                            @Html.DropDownListFor(model => model.PM, Model.pmList,"---")
                            <!--@Html.ValidationMessageFor(model => model.PM)-->
                            </div>
    				</li>
                     <li>
                            <div class="editor-label">
                            @Html.LabelFor(model => model.SE)
                            </div>
    	                    <div class="editor-field">
                            @Html.DropDownListFor(model => model.SE, Model.seList,"---")
                            <!--@Html.ValidationMessageFor(model => model.SE)-->
                            </div>
    				</li>
                     <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.presales_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.presales_account) 人天
                <!--@Html.ValidationMessageFor(model => model.presales_account)-->
            </div>
            </li>
              <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.pm_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.pm_account) 人天
                <!--@Html.ValidationMessageFor(model => model.pm_account)-->
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.ts_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ts_account) 人天
                <!--@Html.ValidationMessageFor(model => model.ts_account)-->
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.art_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.art_account) 人天
                <!--@Html.ValidationMessageFor(model => model.art_account)-->
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.dev_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.dev_account) 人天
                <!--@Html.ValidationMessageFor(model => model.dev_account)-->
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.tester_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.tester_account) 人天
                <!--@Html.ValidationMessageFor(model => model.tester_account)-->
            </div>
            </li>
            </ul>
            </div>
               <div class="action">
                    <input type="submit" value="保存" class="Button01" />
               </div>
            </div>
    }
     @Html.CommonnScript()
</body>
</html>
